
#import "ZJMessageSysViewController.h"

@interface ZJMessageSysViewController ()


@property (nonatomic, strong) UILabel *contentLabel;


@end

@implementation ZJMessageSysViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    [self setupUI];
    self.title = @"系统消息";
}

- (void)setupUI {

    
    // 消息标题
    UILabel *messageTitle = [[UILabel alloc] init];
    messageTitle.text = @"消息标题消息标题";
    messageTitle.font = [UIFont systemFontOfSize:16 weight:UIFontWeightBold];
    messageTitle.textColor = [UIColor colorWithHexString:@"181818"];
    [self.view addSubview:messageTitle];
    
    // 消息内容
    self.contentLabel = [[UILabel alloc] init];
    self.contentLabel.text = @"消息内容消息内容消息内容消息内容消息内容消息内容消息内容消息内容消息内容消息内容消息内容消息内容消息内容消息内容消息内容消息内容消息内容消息内容消息内容消息内容消息内容消息内容消息内容消息内容";
    self.contentLabel.numberOfLines = 0;
//    self.contentLabel.font = [UIFont systemFontOfSize:14];
    self.contentLabel.font = [UIFont systemFontOfSize:15 weight:UIFontWeightRegular];
    self.contentLabel.textColor = [UIColor colorWithHexString:@"333333"];
    [self.view addSubview:self.contentLabel];
    
    
    
    [messageTitle mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.view).offset(22);
        make.right.equalTo(self.view).offset(-22);
        make.top.equalTo(self.view.mas_top).offset(32 + StatusBarHeight);
    }];
    
    [self.contentLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.view).offset(22);
        make.right.equalTo(self.view).offset(-22);
        make.top.equalTo(messageTitle.mas_bottom).offset(8.5);
    }];
}


@end
